from django.conf.urls import url
from .views import user
from .views import category_manage
from .views import tag_manage
from .views import article_manage

urlpatterns = [
    url(r'^base-info.html$', user.base_info),    # 博主个人信息
    url(r'^tag.html$', tag_manage.tag),    # 博主个人标签管理
    url(r'^category.html$', category_manage.category),    # 博主个人分类管理
    url(r'^article-?(?P<article_type>\d*)-?(?P<category_id>\d*).html$', article_manage.article),    # 博主个人文章管理
    url(r'^add-article.html$', article_manage.add_article),    # 添加文章
    url(r'^del_article/$', article_manage.del_article),    # 删除文章
    url(r'^edit-article-(\d+).html$', article_manage.edit_article),    # 编辑文章
    url(r'del_category/$', category_manage.del_category),    # 删除文章分类
    url(r'edit_category/$', category_manage.edit_category),  # 编辑文章分类
    url(r'edit_tag/$', tag_manage.edit_tag),  # 编辑文章标签
    url(r'del_tag/$', tag_manage.del_tag),  # 删除文章标签
    url(r'upload_avatar/$', user.upload_avatar),  # 上传头像
    url(r'upload_file/$', article_manage.upload_file)    # 上传文件
    # url(r'test/$', user.test),  # test
]
